package com.project.entity.enumcommon;

public enum AuditStatusEnum {

	P("通过","通过了"), N("未通过","未通过"), W("待审核","报名了"), C("已取消","取消了");  
	
	private final String value;  
	private final String logValue;  
	  
	AuditStatusEnum (String value,String logValue) {  
        this.value = value;  
        this.logValue = logValue;  
    }  
      
    public String getValue() {  
        return value;  
    }  
    
    public String getLogValue() {  
        return logValue;  
    }  
    
    /** 
     * 根据审核状态的值获取枚举对象。 
     * 
     * @param value 审核状态的值 
     * @return 枚举对象 
     */
    public static AuditStatusEnum getInstance(String value) { 
    	AuditStatusEnum[] allValues = AuditStatusEnum.values(); 
      for (AuditStatusEnum status : allValues) { 
        if (status.getValue().equalsIgnoreCase(value)) { 
          return status; 
        } 
      } 
      throw new IllegalArgumentException("value值非法，没有符合审核状态的枚举对象"); 
    } 
}
